<?php /* Smarty version 2.6.6, created on 2013-10-25 13:29:25
         compiled from categories.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('insert', 'get_audio_categories', 'categories.tpl', 11, false),array('insert', 'get_advertisement', 'categories.tpl', 19, false),array('insert', 'audio_categories_count', 'categories.tpl', 35, false),array('insert', 'get_audios_from_catid', 'categories.tpl', 38, false),array('insert', 'get_seotitle_from_audioid', 'categories.tpl', 40, false),array('modifier', 'stripslashes', 'categories.tpl', 13, false),array('modifier', 'file_exists', 'categories.tpl', 42, false),)), $this); ?>
<div id="main_wrap">
	<div class="center_wrap clearfix">
        <h2 class="no_bottom no_top breadcrumb"><?php echo $this->_tpl_vars['lang50']; ?>
</h2>
        
        <div id="sidebar_wrap">
            <div id="list_cats">
			<a class="category-txt" href="<?php echo $this->_tpl_vars['baseurl']; ?>
/categories/">
	<img alt="Category" src="<?php echo $this->_tpl_vars['baseurl']; ?>
/images/tjj_music_we_categories.jpg">
        </a>
                <ul id="ul_categories">
                    <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_audio_categories', 'assign' => 'listaudiocategories')), $this); ?>

        			<?php unset($this->_sections['o']);
$this->_sections['o']['name'] = 'o';
$this->_sections['o']['loop'] = is_array($_loop=$this->_tpl_vars['listaudiocategories']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['o']['show'] = true;
$this->_sections['o']['max'] = $this->_sections['o']['loop'];
$this->_sections['o']['step'] = 1;
$this->_sections['o']['start'] = $this->_sections['o']['step'] > 0 ? 0 : $this->_sections['o']['loop']-1;
if ($this->_sections['o']['show']) {
    $this->_sections['o']['total'] = $this->_sections['o']['loop'];
    if ($this->_sections['o']['total'] == 0)
        $this->_sections['o']['show'] = false;
} else
    $this->_sections['o']['total'] = 0;
if ($this->_sections['o']['show']):

            for ($this->_sections['o']['index'] = $this->_sections['o']['start'], $this->_sections['o']['iteration'] = 1;
                 $this->_sections['o']['iteration'] <= $this->_sections['o']['total'];
                 $this->_sections['o']['index'] += $this->_sections['o']['step'], $this->_sections['o']['iteration']++):
$this->_sections['o']['rownum'] = $this->_sections['o']['iteration'];
$this->_sections['o']['index_prev'] = $this->_sections['o']['index'] - $this->_sections['o']['step'];
$this->_sections['o']['index_next'] = $this->_sections['o']['index'] + $this->_sections['o']['step'];
$this->_sections['o']['first']      = ($this->_sections['o']['iteration'] == 1);
$this->_sections['o']['last']       = ($this->_sections['o']['iteration'] == $this->_sections['o']['total']);
?>
	    			<li><a href="<?php echo $this->_tpl_vars['baseurl']; ?>
/browse/categories/audios/z/<?php echo $this->_tpl_vars['listaudiocategories'][$this->_sections['o']['index']]['CATID']; ?>
/1/<?php echo ((is_array($_tmp=$this->_tpl_vars['listaudiocategories'][$this->_sections['o']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['listaudiocategories'][$this->_sections['o']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</a></li>
        			<?php endfor; endif; ?>
                </ul>
            </div>
            <div class="sky_ad">
            	<center>
                <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_advertisement', 'value' => 'var', 'AID' => '2')), $this); ?>

                </center>
            </div>
        </div>
    
        <div class="right col1"> 
        
            <!-- LOOP START -->
            <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_audio_categories', 'assign' => 'listcats')), $this); ?>

        	<?php unset($this->_sections['o']);
$this->_sections['o']['name'] = 'o';
$this->_sections['o']['loop'] = is_array($_loop=$this->_tpl_vars['listcats']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['o']['show'] = true;
$this->_sections['o']['max'] = $this->_sections['o']['loop'];
$this->_sections['o']['step'] = 1;
$this->_sections['o']['start'] = $this->_sections['o']['step'] > 0 ? 0 : $this->_sections['o']['loop']-1;
if ($this->_sections['o']['show']) {
    $this->_sections['o']['total'] = $this->_sections['o']['loop'];
    if ($this->_sections['o']['total'] == 0)
        $this->_sections['o']['show'] = false;
} else
    $this->_sections['o']['total'] = 0;
if ($this->_sections['o']['show']):

            for ($this->_sections['o']['index'] = $this->_sections['o']['start'], $this->_sections['o']['iteration'] = 1;
                 $this->_sections['o']['iteration'] <= $this->_sections['o']['total'];
                 $this->_sections['o']['index'] += $this->_sections['o']['step'], $this->_sections['o']['iteration']++):
$this->_sections['o']['rownum'] = $this->_sections['o']['iteration'];
$this->_sections['o']['index_prev'] = $this->_sections['o']['index'] - $this->_sections['o']['step'];
$this->_sections['o']['index_next'] = $this->_sections['o']['index'] + $this->_sections['o']['step'];
$this->_sections['o']['first']      = ($this->_sections['o']['iteration'] == 1);
$this->_sections['o']['last']       = ($this->_sections['o']['iteration'] == $this->_sections['o']['total']);
?>
            <?php if ((1 & $this->_sections['o']['iteration'])): ?>
            <div class="cat_all_list clearfix">
            <?php endif; ?>
                <div class="cat_box_big <?php if ((1 & $this->_sections['o']['iteration'])): ?>left<?php else: ?>right<?php endif; ?>">
                    <h3>
                        <a href="<?php echo $this->_tpl_vars['baseurl']; ?>
/browse/categories/audios/z/<?php echo $this->_tpl_vars['listcats'][$this->_sections['o']['index']]['CATID']; ?>
/1/<?php echo $this->_tpl_vars['listcats'][$this->_sections['o']['index']]['name']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['listcats'][$this->_sections['o']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
</a> 
                        <small><?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'audio_categories_count', 'value' => 'a', 'assign' => 'atotal', 'catid' => $this->_tpl_vars['listcats'][$this->_sections['o']['index']]['CATID'])), $this);  echo $this->_tpl_vars['atotal']; ?>
 <?php echo $this->_tpl_vars['lang875']; ?>
</small>
                    </h3>
                    <p class="cat_img_big no_bottom">
                    	<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_audios_from_catid', 'value' => 'a', 'assign' => 'ca', 'lim' => 3, 'CID' => $this->_tpl_vars['listcats'][$this->_sections['o']['index']]['CATID'])), $this); ?>

                        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['ca']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                        <a href="<?php echo $this->_tpl_vars['baseurl']; ?>
/audios/<?php echo $this->_tpl_vars['ca'][$this->_sections['i']['index']]['AUDIOID']; ?>
/<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_seotitle_from_audioid', 'assign' => 'title', 'audioid' => $this->_tpl_vars['ca'][$this->_sections['i']['index']]['AUDIOID'])), $this); ?>
">
						<?php ob_start(); ?>images/audiothumbs/<?php echo $this->_tpl_vars['ca'][$this->_sections['i']['index']]['AUDIOID']; ?>
-1<?php echo $this->_tpl_vars['ca'][$this->_sections['i']['index']]['ext'];  $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('player', ob_get_contents());ob_end_clean(); ?> 
						<?php if (((is_array($_tmp=$this->_tpl_vars['player'])) ? $this->_run_mod_handler('file_exists', true, $_tmp) : file_exists($_tmp))): ?>
							<img width="<?php echo $this->_tpl_vars['max_thumb_width']; ?>
" height="<?php echo $this->_tpl_vars['max_thumb_height']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ca'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
" src="<?php echo $this->_tpl_vars['athumburl']; ?>
/<?php echo $this->_tpl_vars['ca'][$this->_sections['i']['index']]['AUDIOID']; ?>
-1<?php echo $this->_tpl_vars['ca'][$this->_sections['i']['index']]['ext']; ?>
" />
						<?php else: ?>
							<img width="<?php echo $this->_tpl_vars['max_thumb_width']; ?>
" height="<?php echo $this->_tpl_vars['max_thumb_height']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['ca'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
" src="<?php echo $this->_tpl_vars['athumburl']; ?>
/default.png" />
						<?php endif; ?>
												</a>
                        <?php endfor; endif; ?>
                    </p>
                </div>
            <?php if (!(1 & $this->_sections['o']['iteration']) || $this->_sections['o']['last']): ?>
            </div>
            <?php endif; ?>
            <?php endfor; endif; ?>
            <!-- LOOP END -->
    
        </div>

    	<div class="clear"></div>
    </div>
</div>

























 
        	<?php if ($this->_tpl_vars['error'] != ""): ?>
            	<div class="errorMsg3" id="errorMsg3" name="errorMsg2" style="display:''">
					<?php echo $this->_tpl_vars['error']; ?>

				</div>
            <?php endif; ?>